package com.leyou.auth.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("auth-service")
public interface AuthClient {

    //我们在ly-auth中提供一个接口，提供给其他各个微服务调用，获取秘钥
    @RequestMapping("/client/key")
    String getSecretKey(@RequestParam("clientId") String clientId, @RequestParam("secret") String secret);
}
